<?php 
class CController
{
	protected $data;
	public function __construct($config=null) 
    { 
      $this->data=$config;
    } 
	
	public function getObject($obj)
	{
		$objects = explode(":",$obj);
		$object=$this->data->itemAt($objects[0]);
		for ($i=1; $i<count($objects); $i++)
		{
			$method='get'.$objects[$i];
			if(isset($object))
			$object=$object->$method();
			else
			$object=null;
		 
		}
	 return $object;
	}
}